#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <ctype.h>
#include <string.h>
#include <conio.h>

int main ()
{
	unsigned int N,n=0;
	printf("Vvedite chislo: ");
	scanf("%d", &N);

	while (N!=0)
	{	
		if (N & 1)
		n++;
		N = N  >> 1;
	}

	printf ("Chislo edinichnih bit = %d \n", n);
	system ("PAUSE");
}